<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title><% if params[:controller] == 'content_pages' and
            ( params[:action] == 'view' or 
              params[:action] == 'view_default') -%>
<%= @content_page.title %>
<% else -%>
<%= params[:controller] %> | <%= params[:action] %> 
<% end -%></title>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" href="/stylesheets/goldberg.css" 
  type="text/css" media="screen" />
<link rel="stylesheet" href="/stylesheets/layout.css" 
  type="text/css" media="screen" />

<%= javascript_include_tag :defaults %>

<% if defined?(RAILS_ROOT)
     if File.exists?("#{RAILS_ROOT}/public/stylesheets/ajax_scaffold.css") -%>
<%= stylesheet_link_tag 'ajax_scaffold', :media => 'all' %>
  <% end 
     if File.exists?("#{RAILS_ROOT}/public/javascripts/ajax_scaffold.js") -%>
<%= javascript_include_tag 'rico_corner', 'ajax_scaffold' %>
  <% end
  end -%>

</head>

<body>
<div class="container">

<div class="header">

<img class="logo_right" src="/images/logo_right.jpg"/>
<h1><%= @settings.site_name %></h1>
<p><%= @settings.site_subtitle %></p>

<!-- Could put something here like some top links -->
<!--p class="right_text"></p-->
</div>  <!-- class="header" -->

<!-- Horizontal menu, along top -->
<div class="mainmenu">
<!-- %= render_component(:controller => 'page/menubar', :action =>
'top_menu') %-->
  <%= render :partial => 'menu_items/menubar', :locals => {:level => 0,
      :depth => 0, :class_attr => nil} %>

</div>  <!-- class="mainmenu" -->
 
<div class="wrap">

<!-- Left-hand side.  Vertical submenus, plus other stuff -->
<div class="leftside">
<!-- %= render_component(:controller => 'page/menubar', :action =>
'side_menu') %-->
  <%= render :partial => 'menu_items/menubar', :locals => {:level => 1,
      :depth => (@settings.menu_depth - 2), :class_attr => 'sidemenu'} %>

<!-- Put other LHS stuff here -->
</div>  <!-- class="leftside" -->


<!-- Right-hand side.  Login/status, plus other stuff -->
<div class="rightside">

<!-- %= render_component(:controller => 'page/auth', :action =>
'login_logout') %-->
  <%= render :partial => 'auth/login' %>

<!-- Put other RHS stuff here -->
</div>  <!-- class="rightside" -->


<div class="content">
<% if flash[:note] -%>
<div class="flash_note"><%= flash[:note] %></div>
<% elsif flash[:error] -%>
<div class="flash_error"><h1>Error!</h1><%= flash[:error] %></div>
<% end -%>
<%= yield %>
</div>  <!-- class="content" -->


<div class="clearingdiv">&nbsp;</div>
</div>  <!-- class="wrap" -->

</div>  <!-- class="container" -->

<div class="footer"><%= @settings.footer_message %></div>
</body>
</html>